Page({
  data: {
    logs: [],
    count:''
  },
  //获取单号
  getodd(e){
    console.log(e)
    this.setData({
      count:e.detail.value
    })
  },
  querysd(){
    console.log('sdsfsf')
    if(this.data.count==''){
      wx.showToast({
        title: '请填写单号',
        icon:'none'
      })
      return
    }
    wx.navigateTo({
      url: `../../index/workorderDetal/workorderDetal?odd=${this.data.count}`,
    })
  },
  scan(){
    wx.navigateTo({
      url: '../scan/scan?type=2',
    })
  },
  onLoad: function () {

  }
})
